package com.synjones.zeus.model.ykt.pay;

import com.synjones.zeus.model.ExReqBean;
import com.synjones.zeus.model.group.UserGroupDiscount;
import com.synjones.zeus.model.meal.MealBean;
import com.synjones.zeus.model.ykt.gdsc.GdscCardPayReqBean;
import lombok.Data;

/**
 * @author yys
 * Description:
 * @date created in 11:43 2018-03-29
 * Modified by:
 */
@Data
public class PayRecoreInfo{
    /**
     * 主键
     */
    private Integer id;
    /**
     * 学工号
     */
    private String sno;
    /**
     * 姓名
     */
    private String name;
    /**
     * 一卡通账户
     */
    private String account;
    /**
     * 交易金额
     */
    private String tranamt;
    /**
     * 群组折扣前金额
     */
    private String groupDiscountTranamt;
    /**
     * 群组折扣率
     */
    private String groupDiscount;
    /**
     * 群组Id
     */
    private String groupId;
    /**
     * 账户类型
     */
    private String acctype;
    /**
     * 商户号
     */
    private String mercacc;
    /**
     * 费用说明
     */
    private String remark;
    /**
     * 附加数据
     */
    private String attach;
    /**
     * 系统订单号
     */
    private String orderno;
    /**
     * 一卡通返回订单号
     */
    private String outid;
    /**
     * 一卡通机具编号
     */
    private String termid;
    /**
     * 餐次类型
     */
    private String mealType;
    /**
     * 开餐时间
     */
    private String mealStartTime;
    /**
     * 结束时间
     */
    private String mealStopTime;
    /**
     * 用餐支付时间
     */
    private String payTime;
    /**
     * 支付方式
     */
    private String payType;
    /**
     * 支付状态
     */
    private String state;
    /**
     * 设备imei
     */
    private String imei;

    /**
     * 商户名称
     */
    private String mercname;

    public PayRecoreInfo() {
    }

    public PayRecoreInfo(String sno , ExReqBean<GdscCardPayReqBean> reqBean, MealBean mealBean,String tranamt, String groupDiscountTranamt,String groupDiscount,String groupId) {
        GdscCardPayReqBean gdscCardPayReqBean = reqBean.getData();
        this.sno = sno;
        this.name = gdscCardPayReqBean.getName();
        this.account = gdscCardPayReqBean.getAccount();
        this.tranamt = tranamt;
        this.groupDiscountTranamt = groupDiscountTranamt;
        this.groupDiscount = groupDiscount;
        this.groupId = groupId;
        this.acctype = gdscCardPayReqBean.getAcctype();
        this.mercacc = gdscCardPayReqBean.getMercacc();
        this.remark = gdscCardPayReqBean.getRemark();
        this.attach = gdscCardPayReqBean.getAttach();
        this.orderno = gdscCardPayReqBean.getOrderno();
        this.termid = gdscCardPayReqBean.getTermid();
        this.payType = gdscCardPayReqBean.getPayType();
        this.mealType = mealBean.getMealType();
        this.mealStartTime = mealBean.getMealStartTime();
        this.mealStopTime = mealBean.getMealStopTime();
        this.imei = reqBean.getImei();
    }

}
